package demo.SmartHomePlatformDamo;

public class HomeAppliances implements  Switch{
    // 家电名称
    private String name;
    private boolean status;

    @Override
    public void press() {
        // 控制设备开关
        status=!status;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus( boolean status ) {
        this.status = status;
    }

    // 家电状态


    public HomeAppliances( String name, boolean status ) {
        this.name = name;
        this.status = status;
    }

    public HomeAppliances( String name ) {
        this.name = name;
    }

    public HomeAppliances() {
    }

    public String getName() {
        return name;
    }

    public void setName( String name ) {
        this.name = name;
    }


}
